﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLBH.Utilities;
using System.Collections.Specialized;

namespace QLBH.Models
{
    public class BranchsModel:ModelBase
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private DateTime created_at;

        public DateTime Created_at
        {
            get { return created_at; }
            set { created_at = value; }
        }
        private DateTime updated_at;

        public DateTime Updated_at
        {
            get { return updated_at; }
            set { updated_at = value; }
        }
        private String name;

        public String Name
        {
            get { return name; }
            set { name = value; }
        }
        private int warehourse_id;

        public int Warehourse_id
        {
            get { return warehourse_id; }
            set { warehourse_id = value; }
        }
        private int shop_id;

        public int Shop_id
        {
            get { return shop_id; }
            set { shop_id = value; }
        }
        private String address;

        public String Address
        {
            get { return address; }
            set { address = value; }
        }
        private String phone;

        public String Phone
        {
            get { return phone; }
            set { phone = value; }
        }

        public BranchsModel()
        { 
        }
        public override NameValueCollection PrepareValue()
        {
            NameValueCollection data = new NameValueCollection();
            data.Add("name",this.name.ToString());
            data.Add("warehourse_id", this.warehourse_id.ToString());
            data.Add("shop_id", this.shop_id.ToString());
            data.Add("address", this.address.ToString());
            data.Add("phone", this.phone.ToString());
            return data;
        }
    }
}
